(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/user/edit-phone" ], {
    6580: function(e, t, o) {
        (function(e) {
            o("767a"), n(o("66fd"));
            var t = n(o("7aed"));
            function n(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = o, e(t.default);
        }).call(this, o("543d").createPage);
    },
    6807: function(e, t, n) {},
    "7aed": function(e, t, n) {
        n.r(t);
        var o, r = n("bffa"), c = n("92fb");
        for (o in c) "default" !== o && function(e) {
            n.d(t, e, function() {
                return c[e];
            });
        }(o);
        n("bf9c");
        var a = n("f0c5"), r = Object(a.a)(c.default, r.b, r.c, !1, null, null, null, !1, r.a, void 0);
        t.default = r.exports;
    },
    "92fb": function(e, t, n) {
        n.r(t);
        var o, r = n("c49a"), c = n.n(r);
        for (o in r) "default" !== o && function(e) {
            n.d(t, e, function() {
                return r[e];
            });
        }(o);
        t.default = c.a;
    },
    bf9c: function(e, t, n) {
        var o = n("6807");
        n.n(o).a;
    },
    bffa: function(e, t, n) {
        n.d(t, "b", function() {
            return o;
        }), n.d(t, "c", function() {
            return r;
        }), n.d(t, "a", function() {});
        var o = function() {
            this.$createElement;
            this._self._c;
        }, r = [];
    },
    c49a: function(e, r, c) {
        (function(e) {
            function t(t, e) {
                var n, o = Object.keys(t);
                return Object.getOwnPropertySymbols && (n = Object.getOwnPropertySymbols(t), e && (n = n.filter(function(e) {
                    return Object.getOwnPropertyDescriptor(t, e).enumerable;
                })), o.push.apply(o, n)), o;
            }
            function n(o) {
                for (var e = 1; e < arguments.length; e++) {
                    var r = null != arguments[e] ? arguments[e] : {};
                    e % 2 ? t(Object(r), !0).forEach(function(e) {
                        var t, n;
                        t = o, e = r[n = e], n in t ? Object.defineProperty(t, n, {
                            value: e,
                            enumerable: !0,
                            configurable: !0,
                            writable: !0
                        }) : t[n] = e;
                    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(r)) : t(Object(r)).forEach(function(e) {
                        Object.defineProperty(o, e, Object.getOwnPropertyDescriptor(r, e));
                    });
                }
                return o;
            }
            Object.defineProperty(r, "__esModule", {
                value: !0
            });
            var o = {
                components: {},
                data: function() {
                    return {
                        code: {
                            text: "获取验证码",
                            status: !1,
                            value: ""
                        },
                        phone: ""
                    };
                },
                computed: {},
                onLoad: function() {
                    "bind" === this.$Route.query.fromType ? e.setNavigationBarTitle({
                        title: "绑定手机号"
                    }) : e.setNavigationBarTitle({
                        title: "修改手机号"
                    });
                },
                methods: n(n({}, (r.default = void 0, c("26cb").mapActions)([ "getUserInfo" ])), {}, {
                    editChangemobile: function() {
                        var t = this;
                        t.$api("user.changemobile", {
                            mobile: t.phone,
                            captcha: t.code.value
                        }).then(function(e) {
                            1 === e.errno && (t.$tools.toast("修改手机号成功"), t.getUserInfo(), setTimeout(function() {
                                t.$Router.back();
                            }, 500));
                        });
                    },
                    getCode: function() {
                        var n = this;
                        n.code.status = !0;
                        var o = 60;
                        n.$api("sms.send", {
                            mobile: n.phone,
                            event: "changemobile"
                        }).then(function(e) {
                            var t;
                            1 === e.errno ? (n.code.text = o + "秒", n.code.status = !0, t = setInterval(function() {
                                0 < o ? (n.code.text = o - 1 + "秒", o--) : (clearInterval(t), n.code.text = "获取验证码", 
                                n.code.status = !1);
                            }, 1e3)) : n.code.status = !1;
                        });
                    }
                })
            };
            r.default = o;
        }).call(this, c("543d").default);
    }
}, [ [ "6580", "common/runtime", "common/vendor" ] ] ]);